package com.learn.strategy.dto;

import lombok.Data;

/**
 * @author tuzhijin
 * @version Id: CommonPairResponse.java, v 0.1 2021/3/21 下午1:25 tuzhijin Exp $$
 */
@Data
public class CommonPairResponse{

    private String msg;
    private Object obj;

    public CommonPairResponse() {
    }

    public CommonPairResponse(String msg) {
        this.msg = msg;
    }

    public CommonPairResponse(String msg, Object obj) {
        this.msg = msg;
        this.obj = obj;
    }


    public static CommonPairResponse success(String msg, Object obj){
       return new CommonPairResponse(msg, obj);
    }

    public static CommonPairResponse failure(String msg){
        return new CommonPairResponse(msg);
    }

}
